package service.menu;


import javax.servlet.http.HttpServletRequest;

import entities.menu.MenuEntities;
/**
 * 
 * 管理菜单接口
 * @author hxl
 * 2018年11月26日
 */
public interface MenuService {
	/**
	 * 获得所有菜单
	 * @return
	 */
	public MenuEntities getAllMenu();
    /**
     * 获得已授权菜单
     * @return
     */
	public MenuEntities getAuthorizedMenu();
	/**
	 * 新增或者更新菜单
	 * @param location 
	 * @param level 
	 */
	public void addMenu(int type,String id,int level, int location, String name,String path,HttpServletRequest req);
    
    /**
     * 删除菜单
     * @param id
     */
	public void deleteMenu(String id);
}
